﻿@using SeagullConsulting.MvcAjaxControls.Web.Mvc.Helpers
@using SeagullConsulting.MvcAjaxControls.Web.UI.Controllers;
@{
    ViewBag.Title = "Index";
}

<h2>AjaxDropdown</h2>

<div>
    City:@(Html.AjaxDropdown("Cities").Controller<AjaxDropdownController>().Parent("States").ToHtml())
</div>
<br />
<div>
    State:@(Html.AjaxDropdown("States").Parent("Countries").ToHtml())
</div>
<br />
<div>
    Country:@(Html.AjaxDropdown("Countries").ToHtml())
</div>
